package com.xxl.job.executor.dao;

import com.xxl.job.core.biz.model.DbInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DbInfoMapper {

    public int save(DbInfo dbInfo);

    public int saveSelective(DbInfo dbInfo);

    public int delete(@Param("id") int id);

    public int update(DbInfo dbInfo);

    public DbInfo loadById(@Param("id") int id);

    public int findAllCount();

    public List<DbInfo> query(Map<String, String> map);

    public List<DbInfo> queryAllTotal(Map<String, String> map);
}

